<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 3.2//EN">
<!-- saved from url=(0042)http://www.easysurf.cc/cnver17.htm#b2tob10 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script language="JavaScript" src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/brd.js"></script><link rel="stylesheet" type="text/css" href="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/style.css">


<style type="text/css">
.r {
border-style: solid;
border-color: black
}

<!--  A:hover	{color:red} -->
</style>
<script language="javascript">
<!--

function refer()
{
var URL = "http://www.easysurf.cc/cnver17.htm" ;
var txt = "Visit:  " + URL + "   " ;
txt += "  I recommend this page to you." ;
var to="" ;
var sb = "I found a site I thought you'd like to see" ;
var ad = 'mailto:' + to + '?subject=' + sb + '&body=' + txt ;
document.location = ad ;
}
 -->
</script>

<title>Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number</title>
<meta name="GENERATOR" content="Mozilla/3.0b5aGold (Win16; I) [Netscape]">

<meta name="title" content="Radix Base Number - Decimal (convert to and from)">
<meta name="keywords" content="Number, conversion, number, Decimal, Hexadecimal,
Binary, base, radix, free, online, calculator, convert">
<meta name="description" content="Convert Any Radix Base Number to Decimal (to and from) or to Any other Radix Base Number.
Convert form one numeral system to another numeral system - online calculators">

<script language="JavaScript">
function GetNumber1(form) {
	var i = "";
 	var v = "";
	var g = 0;
	var m = 0;
	var nUpower = 0;
	var nSprod = 0;
	var pw3 = parseInt(form.txtNumbe2.value, 10)
	var sNumber = stripBad2(form.txtNumber.value);
	var j =  sNumber.length
	for (k=0; k < j; k++) {
	i = sNumber.charAt(k)
	nUpower = k+1
	nSprod = Math.pow(pw3, -nUpower)
	m=i*nSprod
	g = g+m
	v = "" + g
	var vj =  v.length
	var jv = v.substring(1, vj)
		}
	form.txtResult.value= jv
}

function GetNumber2(form) {	
	var pw3 = parseInt(form.txtNumbe2.value, 10)
	var sNumber = parseFloat(stripBad(form.txtNumber.value));
	var toHex=sNumber.toString(pw3);
	toHex=toHex.toUpperCase()
	form.txtResult.value= toHex}

function GetNumber2a(form) {	
	var pw3 = parseInt(form.txtNumbe2.value, 10)
	var sNumber = parseInt(form.txtNumber.value, pw3);
	sNumber = gesult(sNumber)
	form.txtResult.value= sNumber}

function GetNumber3(form) {
	var frb3 =	parseInt(form.txtNumbe2.value, 10)
	var frn3 = parseInt(form.txtNumber.value, frb3)
	var tob3 =	parseInt(form.txtNumbe3.value, 10)
	if ((frb3 < 2) || (frb3 > 36)) {
	form.txtResult.value= "Base Number may not be greater than 36 or less than 2"}

	else if ((tob3 < 2) || (tob3 > 36)) {
	form.txtResult.value= "Base Number may not be greater than 36 or less than 2"}
 
	else {
	var toHex=frn3.toString(tob3);
	toHex=toHex.toUpperCase()
	form.txtResult.value= toHex + "    Base " + tob3}
}

function GetNumber4(form) {
	var iz = "";
 	var v = "";
	var pos = 0;
	var g = 0;
	var m = 0;
	var nUpower = 0;
	var nSprod = 0;
	var lst = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	var pw3 = parseInt(form.txtNumbe2.value, 10)
	var sNumber = form.txtNumber.value;
	sNumber = sNumber.toUpperCase()
	sNumber = stripBad3(sNumber)
	var j =  sNumber.length
	for (k=0; k < j; k++) {
	iz = sNumber.charAt(k)
	pos = lst.indexOf(iz)
	nUpower = k+1
	nSprod = Math.pow(pw3, -nUpower)
	m=pos*nSprod
	g = g+m
	v = "" + g
	var vj =  v.length
	var jv = v.substring(1, vj)
		}
	form.txtResult.value= jv
}

function GetNumber5(form) {	
<!-- 1  603 + 57  602 + 46  60 + 40  = 424000  1,57,46,40 in Babylonian numerals  sexagesimal  -->


	var pw3 = parseInt(form.txtNumbe2.value, 10);
	var sNumber = parseFloat(stripBad(form.txtNumber.value));
	drust = tobab(pw3,sNumber);
	form.txtResult.value=  drust}

function GetNumber6(form) {	

	var pw3 = parseInt(form.txtNumbe2.value, 10)
	var sNumber = form.txtNumber.value;
	nsum = frombab(pw3,sNumber);
	var cNumbe3 = gesult(nsum);
	form.txtResult.value= cNumbe3
}

function GetNumber7(form) {	

	var pw3 = parseInt(form.txtNumbe2.value, 10)
	var sNumber = form.txtNumber.value;
	var pw4 = parseInt(form.txtNumbe3.value, 10)
	nsum = frombab(pw3,sNumber);
	drust = tobab(pw4,nsum);
	form.txtResult.value= drust
}

function frombab(pw3,sNumber) {
	var phrase ="";
	var wds = new Array(20)
	var dial2 = "";
	var rest2 = 0;
	var r = 0;
	var bz = ",";
	phrase = sNumber;
	dial2 = phrase + ",zzz"
	var puzz = 0;
	phrase=phrase.split(',');
	for (z=0; z<phrase.length; z++) {if (phrase[z].length > 0) r++;}
	puzz = r;
	for (zy=0; zy<puzz; zy++) {
	var lbz = dial2.length;
	var zb2 = dial2.indexOf(bz);
	wds[zy] = dial2.substring(0, zb2);
	dial2 = dial2.substring(zb2+1, lbz);
	rest2 = rest2 + 1;
	}
	var tow4 = rest2 - 1;
	var nsum = 0;
	for (i = 0; i < rest2; i++) {
	nsum = nsum + (wds[i] * Math.pow(pw3, tow4));
	tow4 = tow4 - 1;
	}
    return nsum;
}
function tobab(pw3,sNumber) {

	var tag = 0;
	var drust = "";
	var num1 = sNumber - Math.pow(pw3, tag);
	while (num1 >= 0)
		{tag = tag + 1;
		num1 = sNumber - Math.pow(pw3, tag);
			}
	var tow4 = tag - 1;
	var sumleft = sNumber;
	for (i = 1; i < tag; i++) {
	var dig1 = Math.floor(sumleft / Math.pow(pw3, tow4));
	drust = drust + dig1 + ",";
	sumleft = sumleft - (dig1 * Math.pow(pw3, tow4));
	tow4 = tow4 - 1;
	}
	drust = drust + sumleft;

    return drust;
}

function stripBad(string) {
    for (var i=0, output='', valid="eE-0123456789."; i<string.length; i++)
       if (valid.indexOf(string.charAt(i)) != -1)
          output += string.charAt(i)
    return output;
} 


function stripBad2(string) {
    for (var i=0, output='', valid="eE-0123456789"; i<string.length; i++)
       if (valid.indexOf(string.charAt(i)) != -1)
          output += string.charAt(i)
    return output;
} 

function stripBad3(string) {
    for (var i=0, output='', valid="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; i<string.length; i++)
       if (valid.indexOf(string.charAt(i)) != -1)
          output += string.charAt(i)
    return output;
} 

function gesult(ff){

 if (Number.prototype.toFixed) {
   ff = ff.toFixed(5);
   ff = parseFloat(ff);
 }
 else {
   var leftSide = Math.floor(ff);
   var rightSide = ff - leftSide;
   ff = leftSide + Math.round(rightSide *1e+14)/1e+14;
 }

 return comma(ff);
}

function comma(num) {
 var n = Math.floor(num);
 var myNum = num + "";
 var myDec = ""
 
 if (myNum.indexOf('.',0) > -1){
  myDec = myNum.substring(myNum.indexOf('.',0),myNum.length);
 }

  var arr=new Array('0'), i=0; 
  while (n>0) 
    {arr[i]=''+n%1000; n=Math.floor(n/1000); i++;}
  arr=arr.reverse();
  for (var i in arr) if (i>0)
    while (arr[i].length<3) arr[i]='0'+arr[i];
  return arr.join() + myDec;
}

</script>
</head>
<body bgcolor="#FFFAF0" text="#000000" link="Blue" vlink="#0000A0" alink="Blue">
<br>
<center><script type="text/javascript"><!--
google_ad_client = "pub-3970496540640230";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//--></script>
<script type="text/javascript" src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><ins id="aswift_0_anchor" style="display:block;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><iframe allowtransparency="true" frameborder="0" height="90" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){i+=&#39;.call&#39;;setTimeout(h,0)}else if(h.match){i+=&#39;.nav&#39;;w.location.replace(h)}s.log&amp;&amp;s.log.push(i)}" scrolling="no" vspace="0" width="728" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;"></iframe></ins></ins></center><br>

<center><table border="1" background="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/weave.jpg">
<tbody><tr><th><a onclick="window.external.AddFavorite(url2, title2);">
<font size="+2">&nbsp;&nbsp;&nbsp;Easysurf&nbsp;&nbsp;&nbsp;</font></a></th>
<td><font size="+2">&nbsp;&nbsp;&nbsp;<a href="http://www.easysurf.cc/homepg.htm">Home</a>&nbsp;&nbsp;&nbsp;</font></td>
<td><font size="+2">&nbsp;&nbsp;&nbsp;<a href="http://www.easysurf.cc/site.htm">Site Map</a>&nbsp;&nbsp;&nbsp;</font></td>
<script language="JavaScript" src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/eee.js"></script>
<td><font size="+2">&nbsp;&nbsp;&nbsp;<a href="javascript:mail2Url()">E-Mail</a>&nbsp;&nbsp;&nbsp;</font></td>
<td><font size="+2">&nbsp;&nbsp;&nbsp;<a href="http://www.easysurf.cc/cnver17.htm#dir" title="Directions">Help</a>&nbsp;&nbsp;&nbsp;</font></td></tr>
<tr><td colspan="5" align="center"><font size="+2"><a href="http://www.easysurf.cc/menumt.htm#select1">Measurement Conversion Directory</a></font></td></tr>
</tbody></table>
</center>
<table border="0" width="100%">
<tbody><tr><th align="right" valign="top"><a href="javascript:refer()">E-mail ThisPage<br>To A Friend</a>&nbsp;&nbsp;&nbsp;&nbsp;</th></tr>
</tbody></table>

<a name="top"><h2> </h2></a>
<h1>Base Number - Decimal Number Conversion</h1>
<hr color="#FF0000" width="100%"><p></p>

<ul>
<blockquote>

<form><select name="wwwLocations" onchange="ChangeURL(this.form)" size="1"> 
<option selected="" value="">Select a Conversion</option>
<option value="#batob10">Any Radix Base Number (between 2 and 36) to Decimal</option>
<option value="#b2tob10">Binary to Decimal</option>
<option value="#bf2tobf10">Binary Fraction  to Decimal Fraction</option>
<option value="#b10toba">Decimal to Any Radix Base Number (between 2 and 36)</option>
<option value="#b10tob2">Decimal to Binary</option>
<option value="#b10tob16">Decimal to Hexadecimal</option>
<option value="#b10tob4">Decimal to Quaternary</option>
<option value="#b10tob3">Decimal to Ternary</option>
<option value="#b16tob10">Hexadecimal to Decimal</option>
<option value="#b4tob10">Quaternary to Decimal</option>
<option value="#bf4tobf10">Quaternary Fraction  to Decimal Fraction</option>
<option value="#b3tob10">Ternary to Decimal</option>
<option value="#bf3tobf10">Ternary Fraction  to Decimal Fraction</option>
<option value="">Select a Conversion</option></select>
            </form>

            <script>
 function ChangeURL(form) {
 var strURL = "";

 /* Grab the selected URL */
strURL =

form.wwwLocations.options[form.wwwLocations.selectedIndex].value;

 /* Is it blank? */
 if (strURL != "") {
 /* No, Navigate to the new URL */
 window.location.href = strURL;
 }
 }
 </script>
</blockquote>

<dir>

<b><a href="http://www.easysurf.cc/cnver17.htm#b10tob2">Decimal to Binary</a></b><br>
<b><a href="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number.htm">Binary to Decimal</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#bf2tobf10">Binary Fraction  to Decimal Fraction</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#b10tob3">Decimal to Ternary</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#b3tob10">Ternary to Decimal</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#bf3tobf10">Ternary Fraction  to Decimal Fraction</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#b10tob4">Decimal to Quaternary</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#b4tob10">Quaternary to Decimal</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#bf4tobf10">Quaternary Fraction  to Decimal Fraction</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#b10tob16">Decimal to Hexadecimal</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#b16tob10">Hexadecimal to Decimal</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#bf16tobf10">Hexadecimal Fraction  to Decimal Fraction</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#b10toba">Decimal to Any Radix Base Number (between 2 and 36)</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#batob10">Any Radix Base Number (between 2 and 36) to Decimal</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#frtoao">Convert a number in one base (between 2 and 36) to the equivalent number in another base (between 2 and 36)</a></b><br>
<br><br>
<b><i>Numerals Only</i></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#dir2">Numerals Only Directions</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#ncdtoarb">Decimal Number to Any Radix Base Number</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#ncarbtodn">Any Radix Base Number to Decimal</a></b><br>
<b><a href="http://www.easysurf.cc/cnver17.htm#ncb1tob2">Convert numerals in one base (radix) to the equivalent numerals in another base - numerals only</a></b><br>




</dir>
<br>
<hr color="#FF0000" width="100%">

<a name="b10tob2"><h2> </h2></a>
<h2>Convert Decimal to Binary (base 10 to base 2)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="2">
Enter Decimal Number: <input type="text" name="txtNumber" size="12">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Binary </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="b2tob10"><h2> </h2></a>
<h2>Convert Binary to Decimal (base 2 to base 10)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="2">
Enter Binary Number: <input type="text" name="txtNumber" size="20">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2a(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="14"> Decimal </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="bf2tobf10"><h2> </h2></a>
<h2>Convert Binary Fraction  to Decimal Fraction (base 2 to base 10)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="2">
Enter Binary Fraction: <input type="text" value="." name="txtNumber" size="40"><br>
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber1(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Decimal Fraction </font></b>
<input type="reset" class="b3t">
</form>
<br>

<hr>

<a name="b10tob3"><h2> </h2></a>
<h2>Convert Decimal to Ternary (base 10 to base 3)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="3">
Enter Decimal Number: <input type="text" name="txtNumber" size="12">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Ternary </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="b3tob10"><h2> </h2></a>
<h2>Convert Ternary to Decimal (base 3 to base 10)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="3">
Enter Ternary Number: <input type="text" name="txtNumber" size="20">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2a(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="14"> Decimal </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="bf3tobf10"><h2> </h2></a>
<h2>Convert Ternary Fraction  to Decimal Fraction (base 3 to base 10)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="3">
Enter Ternary Fraction: <input type="text" value="." name="txtNumber" size="40"><br>
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber1(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Decimal Fraction </font></b>
<input type="reset" class="b3t">
</form>
<br>

<hr>

<a name="b10tob4"><h2> </h2></a>
<h2>Convert Decimal to Quaternary (base 10 to base 4)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="4">
Enter Decimal Number: <input type="text" name="txtNumber" size="12">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Quaternary </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="b4tob10"><h2> </h2></a>
<h2>Convert Quaternary to Decimal (base 4 to base 10)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="4">
Enter Quaternary Number: <input type="text" name="txtNumber" size="20">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2a(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="14"> Decimal </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="bf4tobf10"><h2> </h2></a>
<h2>Convert Quaternary Fraction  to Decimal Fraction (base 4 to base 10)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="4">
Enter Quaternary Fraction: <input type="text" value="." name="txtNumber" size="40"><br>
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber1(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Decimal Fraction </font></b>
<input type="reset" class="b3t">
</form>
<br>
<hr>
<br>
<a name="b10tob16"><h2> </h2></a>
<h2>Convert Decimal to Hexadecimal (base 10 to base 16)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="16">
Enter Decimal Number: <input type="text" name="txtNumber" size="12">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="14"> Hexadecimal </font></b>
<input type="reset" class="b3t">
</form>
<br>


<a name="b16tob10"><h2> </h2></a>
<h2>Convert Hexadecimal to Decimal (base 16 to base 10)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="16">
Enter Hexadecimal Number: <input type="text" name="txtNumber" size="12">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2a(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="14"> Decimal </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="bf16tobf10"><h2> </h2></a>
<h2>Convert Hexadecimal Fraction  to Decimal Fraction (base 16 to base 10)</h2><p>
</p><form>
<input type="hidden" name="txtNumbe2" value="16">
Enter Hexadecimal Fraction: <input type="text" value="." name="txtNumber" size="40"><br>
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber4(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Decimal Fraction </font></b>
<input type="reset" class="b3t">
</form>
<br>

<hr>
<a name="b10toba"><h2> </h2></a>
<h2>Convert Decimal to Any Radix Base Number (between 2 and 36)</h2><p>
</p><form>
Enter Base Number: <input type="text" name="txtNumbe2" size="4"><br>
Enter Decimal Number: <input type="text" name="txtNumber" size="12">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="25"></font></b>
<input type="reset" class="b3t">
</form>
<br>


<a name="batob10"><h2> </h2></a>
<h2>Convert Any Radix Base Number (between 2 and 36) to Decimal</h2><p>
</p><form>
Enter Base Number: <input type="text" name="txtNumbe2" size="4"><br>
Enter a Number: <input type="text" name="txtNumber" size="25">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber2a(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="14"> Decimal </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="batob10"><h2> </h2></a>
<h2>Convert Any Radix Base Number (between 2 and 9) Fraction to Decimal Fraction</h2><p>
</p><form>
Enter Base Number (between 2 and 9):<input type="text" name="txtNumbe2" size="4"><br>
Enter a Fraction: <input type="text" name="txtNumber" value="." size="40"><br>
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber1(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Decimal </font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="batob10"><h2> </h2></a>
<h2>Convert Any Radix Base Number (between 10 and 36) Fraction to Decimal Fraction</h2><p>
</p><form>
Enter Base Number (between 2 and 36):<input type="text" name="txtNumbe2" size="4"><br>
Enter a Fraction: <input type="text" name="txtNumber" value="." size="40"><br>
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber4(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="30"> Decimal </font></b>
<input type="reset" class="b3t">
</form>
<br>

<hr>

<a name="frtoao"><h2> </h2></a>
<h2>Convert a number in one base (between 2 and 36) to the equivalent number in another base (between 2 and 36)</h2><p>
</p><form>
Enter <i><b>from</b></i> Base Number: <input type="text" name="txtNumbe2" size="4"><br>
Enter <i><b>from</b></i> Number: <input type="text" name="txtNumber" size="40"><br>
Enter <b><i>to</i></b> Base Number: <input type="text" name="txtNumbe3" size="4"><br>
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber3(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="55"></font></b>
<input type="reset" class="b3t">
</form>
<br>

<hr color="#FF0000" width="100%">

<a name="ncdtoarb"><h2> </h2></a>
<h2>Convert a Decimal Number to Any Radix Base Number numerals only</h2><p>
</p><form>
Enter Base Number: <input type="text" name="txtNumbe2" size="4"><br>
Enter Decimal Number: <input type="text" name="txtNumber" size="12">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber5(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="50"></font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="ncarbtodn"><h2> </h2></a>
<h2>Convert Any Radix Base Number to Decimal numerals only</h2><p>
</p><form>
Enter Base Number: <input type="text" name="txtNumbe2" size="4"><br>
Enter Radix numerals (separated by commas): <br>
<input type="text" name="txtNumber" size="40">
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber6(this.form)"><br>
<b><font size="+1"><input type="text" name="txtResult" size="50"></font></b>
<input type="reset" class="b3t">
</form>
<br>

<a name="ncb1tob2"><h2> </h2></a>
<h2>Convert numerals in one base (radix) to the equivalent numerals in another base - numerals only</h2><p>
</p><form>
Enter <i><b>from</b></i> Base Number: <input type="text" name="txtNumbe2" size="4"><br>
Enter <i><b>from</b></i> Radix numerals (separated by commas): <br>
<input type="text" name="txtNumber" size="40"><br>
Enter <b><i>to</i></b> Base Number: <input type="text" name="txtNumbe3" size="4"><br>
<input type="button" value="Click to Convert" class="b2t" onclick="GetNumber7(this.form)">  <b><font size="+1"><input type="text" name="txtResult" size="40"></font></b>
<input type="reset" class="b3t">
</form>
<br>



<p></p><hr size="4" noshade="" color="#FF0000" width="100%"><p></p>
<script language="JavaScript">
var url2="http://www.easysurf.cc/cnver17.htm"
var title2="Base Number - Decimal Number"
</script>
<center>
<table cellspacing="2" cellpadding="2" bgcolor="black" border="0">
<tbody><tr><td align="center" valign="middle" bgcolor="Blue"> 
<span style="cursor:hand;" onclick="window.external.AddFavorite(url2, title2);"> 
<span style="BACKGROUND-COLOR: Blue"> 
<font size="3" color="white"><b> Click here to add this page to your list of Favorites </b></font></span></span>
</td></tr></tbody></table></center><br>
<a name="dir"><h2> </h2></a>
<font color="#000000">
<h1>Directions</h1>
</font><blockquote><font color="#000000">
Type the number in the box and then click "Click to Convert"<br>
You may type the decimal point.<br>
When you convert a Decimal number to another base, the Decimal Fraction (the number to the 
right of the decimal point) will convert to a Fraction in the other base.<br>
When you convert a number from another base to a Decimal number, the fraction in the other base 
will be ignored. If you type "101111.011", the computer will use "101111" to calculate the answer.<br>
To Convert a Binary Fraction to a Decimal Fraction, enter the Binary Fraction to the right of the decimal point. 
For example, if the number is "101111.011", type "011" to the right of the decimal point.<br>
<a name="b36"></a>
Base Number may not be greater than 36 or less than 2<br>
Base Number may be between 2 and 36<br>
If you enter a digit (or letter) that is equal to or greater than the base number, the result will be erroneous.<br> 

NaN = not a number<br><br>
To clear the entry boxes click "Reset".<br></font><br>

<a name="dir2">Numerals Only Directions</a><br>
The "Numerals Only" conversions can be used for any base system from base 2 to any base over 100.
For example, the Babylonian number system is a base 60 system. 
The decimal number 640,000 converted to base 60 is 2,57,46,40<br>
The numerals are separate by commas.<br><br>

2 <img src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/cross.gif"> 60<sup>3</sup> + 57 <img src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/cross.gif"> 60<sup>2</sup> + 46 <img src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/cross.gif"> 60<sup>1</sup> + 40 <img src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/cross.gif"> 60<sup>0</sup> = 640,000
<br><br>

Decimal (base 10) 983,232 converts to F00C0 Hexadecimal (base 16). 
In the "Numerals Only" version it converts to 15,0,0,12,0<br>
When you enter numerals from a base system, separate the numerals with commas.
Do not enter commas before or after the group of numerals.<br>

<br>
<b>JavaScript Error</b><br>
If you try to convert .7 Decimal to Binary, the result is: 0.1011001100110011001100110011001100110011001100110011...<br>
.5 in Decimal will convert to 0.1 Binary exactly.<br>
There is no exact conversion for .7 Decimal to Binary<br>
All computer operations are turned into Binary (0 and 1). Any mathematical operation that involves 
a Decimal Fraction is subject to this built in error. Rounding the answer to two decimal places should solve this 
problem.<br><br><br>

<table border="1" cellpadding="5" cellspacing="0" class="r">
<tbody><tr><td class="r" colspan="2" align="center">Radix Base Number</td></tr>
<tr><td class="r">Binary</td><td align="right" class="r">Base &nbsp;&nbsp;2</td></tr>
<tr><td class="r">Ternary</td><td align="right" class="r">Base &nbsp;&nbsp;3</td></tr>
<tr><td class="r">Quaternary</td><td align="right" class="r">Base &nbsp;&nbsp;4</td></tr>
<tr><td class="r">Quinary</td><td align="right" class="r">Base &nbsp;&nbsp;5</td></tr>
<tr><td class="r">Senary</td><td align="right" class="r">Base &nbsp;&nbsp;6</td></tr>
<tr><td class="r">Septenary</td><td align="right" class="r">Base &nbsp;&nbsp;7</td></tr>
<tr><td class="r">Octal</td><td align="right" class="r">Base &nbsp;&nbsp;8</td></tr>
<tr><td class="r">Nonary</td><td align="right" class="r">Base &nbsp;&nbsp;9</td></tr>
<tr><td class="r">Decimal<br>denary</td><td align="right" class="r">Base 10</td></tr>
<tr><td class="r">Undenary</td><td align="right" class="r">Base 11</td></tr>
<tr><td class="r">Duodenary</td><td align="right" class="r">Base 12</td></tr>
<tr><td class="r">Hexadecimal</td><td align="right" class="r">Base 16</td></tr>
<tr><td class="r">Sexagesimal</td><td align="right" class="r">Base 60</td></tr>
</tbody></table>
</blockquote>

<br>
<script language="JavaScript">
var initialsubj="I found a site I thought you'd like to see"
var initialmsg=" Visit: "+window.location
u = window.location;
function mailThisUrl() {
window.location = "mailto:"+"?subject="+initialsubj+"&body="+initialmsg
   }
</script>
<table border="0" width="100%">
<tbody><tr><th align="right" valign="top"><form name="eMailer">
<input type="button" class="b3t" value="E-mail This Page To A Friend" onclick="mailThisUrl();">
</form></th></tr>
</tbody></table>
<blockquote>
<p><a href="http://www.easysurf.cc/cnver17.htm#top">Return to the Top</a></p>
<p><a href="http://www.easysurf.cc/fracton.htm">Fraction to Decimal Calculator</a></p>
<p><a href="http://www.easysurf.cc/menumt.htm">Return to Metric - U.S. Measurement Conversions Menu</a></p>
<p><a href="http://www.easysurf.cc/homepg.htm">Return to Main Page</a></p>
</blockquote>
<hr align="center" color="#FF0000" size="6" noshade=""><br>

<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<script>var site="sm2easysurf"</script>
<a target="_top" href="http://www.sitemeter.com/stats.asp?site=sm2easysurf" id="idSiteMeterHREF"><img border="0" alt="Site Meter" src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/meter.asp"></a><iframe frameborder="0" width="0" height="0" src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/saved_resource.htm"></iframe><script language="JavaScript1.2" src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/counter.js">
</script>
<noscript>
&lt;a href="http://sm2.sitemeter.com/stats.asp?site=sm2easysurf" target=_top&gt;
&lt;img src="http://sm2.sitemeter.com/meter.asp?site=sm2easysurf" title="Site Meter" nosave border=0&gt;&lt;/a&gt;
</noscript>
<!-- Copyright (c) 1999-2000 Site Meter -->
<!--WEBBOT bot="HTMLMarkup" Endspan -->

<br>
<div id="eXTReMe"><a href="http://extremetracking.com/open?login=easysur2">
<img src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/i.gif" style="border: 0;" height="38" width="41" id="EXim" alt="eXTReMe Tracker"></a>
<script type="text/javascript"><!--
var EXlogin='easysur2' // Login
var EXvsrv='s11' // VServer
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;
navigator.javaEnabled()==1?EXjv="y":EXjv="n";
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=http://e2.extreme-dm.com",
"/"+EXvsrv+".g?login="+EXlogin+"&amp;",
"jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;",
"l="+escape(EXd.referrer)+" height=1 width=1>");//-->
</script><img src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/s11.g" height="1" width="1"><noscript>&lt;div id="neXTReMe"&gt;&lt;img height="1" width="1" alt=""
src="http://e2.extreme-dm.com/s11.g?login=easysur2&amp;amp;j=n&amp;amp;jv=n" /&gt;
&lt;/div&gt;</noscript></div>
<br>
<img border="0" width="1" height="1" src="./Convert Any Radix Base Number to Decimal or to Any Other Radix Base Number_files/arcount.cgi">


</ul></body></html>